package com.hmdp.utils;

/**
 * @program: hm-dianping
 * @description: 分布式锁接口
 * @author: Feng
 * @create: 2023-03-09 14:50
 **/

public interface ILock {
    boolean tryLock(String key,Long ttl);
    void releaseLock(String key);
}
